import React from "react";
const InjectContext = React.createContext();
function InjectProvider({ value,children}) {
  const injectInfo= useInject()
  return <InjectContext.Provider value={{...injectInfo,...value}}>{children}</InjectContext.Provider>;
}

function useInject() {
  const context = React.useContext(InjectContext);
  return context;
}

export { InjectProvider, useInject };
